import {
    createApp
} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import installElementPlus from '@/plugins/element'

import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';

import storage from "@/utils/storage"
import Header from '@/views/common/Header.vue'
import Footer from '@/views/common/Footer.vue'

console.log("********环境**********")
// base api
// title
console.log(
    import.meta.env.VITE_API_URL);


const app = createApp(App)

// 加载ElementPlus
// installElementPlus(app)

app.component('Header', Header);
app.component('Footer', Footer);

app.use(ElementPlus)


app.config.globalProperties.storage = storage

app
    .use(router)
    .use(store)
    .mount('#app')